package org.edu.modules.kwgl.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.edu.modules.kwgl.entity.VeJwBkXuesheng;
import org.edu.modules.kwgl.entity.VeJwQkXuesheng;
import org.edu.modules.kwgl.mapper.VeJwBkXueshengMapper;
import org.edu.modules.kwgl.service.IVeJwBkXueshengService;
import org.edu.modules.scheduleCommon.dto.BasePageDto;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 补考学生
 * @Author: jeecg-boot
 * @Date:   2021-05-11
 * @Version: V1.0
 */
@Service
public class VeJwBkXueshengServiceImpl extends ServiceImpl<VeJwBkXueshengMapper, VeJwBkXuesheng> implements IVeJwBkXueshengService {

    @Override
    public VeJwBkXuesheng getByStuidAndKcid(int stuid, int kcid) {
        return baseMapper.selectOne(new QueryWrapper<VeJwBkXuesheng>()
                .eq("kcId",kcid)
                .eq("stuId",stuid));
    }

    @Override
    public IPage<VeJwBkXuesheng> pageDto(BasePageDto page, Wrapper queryWrapper) {
        return baseMapper.pageDto(page, queryWrapper);

    }


}
